]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: actually hide keyboard when hiding keyboard
authorRay Strode <rstrode@redhat.com>
Tue, 15 Aug 2017 18:48:47 +0000 (14:48 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 22 Aug 2017 13:44:15 +0000 (09:44 -0400)
Right now we just tuck it off screen, which may leak onto another
screen.  This commit actually hides it.

https://bugzilla.gnome.org/show_bug.cgi?id=786332

js/ui/layout.js

index fd3b3f523f65d9425e4e8df752a16507c47329b3..a2cb6e047f339987988d22274ac9fddd6e63bb2d 100644 (file)
@@ -684,8 +684,10 @@ var LayoutManager = new Lang.Class({
     },
 
     showKeyboard: function () {
+        this.keyboardBox.show();
         Tweener.addTween(this.keyboardBox,
                          { anchor_y: this.keyboardBox.height,
+                           opacity: 255,
                            time: KEYBOARD_ANIMATION_TIME,
                            transition: 'easeOutQuad',
                            onComplete: this._showKeyboardComplete,
@@ -711,6 +713,7 @@ var LayoutManager = new Lang.Class({
         }
         Tweener.addTween(this.keyboardBox,
                          { anchor_y: 0,
+                           opacity: 0,
                            time: immediate ? 0 : KEYBOARD_ANIMATION_TIME,
                            transition: 'easeInQuad',
                            onComplete: this._hideKeyboardComplete,
@@ -721,6 +724,7 @@ var LayoutManager = new Lang.Class({
     },
 
     _hideKeyboardComplete: function() {
+        this.keyboardBox.hide();
         this._updateRegions();
     },